package com.chen.pay.mapper;

import com.chen.model.entity.pay.PaymentInfo;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author cgj
 * @date 5/4/25 9:48 AM
 */
@Mapper
public interface PaymentInfoMapper {
    /**
     *     保存记账本
     * @param paymentInfo
     */
    void save(PaymentInfo paymentInfo);

    /**
     * 根据orderNo查询记账本
     * @param orderNo
     * @return
     */
    PaymentInfo selectPaymentInfoByOrderNo(String orderNo);

    /**
     * 根据id修改记账本状态
     * @param paymentInfo
     */
    void updateById(PaymentInfo paymentInfo);

}
